package cn.mickey.cloud.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class FileIdUtils {

    private static SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");

    public static String getID(){
        return FileIdUtils.format.format(new Date()) + new Random().nextInt(1000);
    }

    public static void main(String[] args) {
        System.out.println(getID());
    }
}
